From 89f64447946ccfaa906987c3ce72ab3788c5705d Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Thu, 30 Nov 2006 17:17:28 +0000 Subject: [PATCH] [MINIOS] Improved unbind_all_ports(). Signed-off-by: Jacob Gorm Hansen --- extras/mini-os/events.c | 27 +++++++++++++++------------ extras/mini-os/include/events.h | 1 + 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/extras/mini-os/events.c b/extras/mini-os/events.c index 5d60ab70fc..dad8e42377 100644 --- a/extras/mini-os/events.c +++ b/extras/mini-os/events.c @@ -31,26 +31,27 @@ typedef struct _ev_action_t { u32 count; } ev_action_t; - static ev_action_t ev_actions[NR_EVS]; void default_handler(evtchn_port_t port, struct pt_regs *regs, void *data); +static unsigned long bound_ports[NR_EVS/(8*sizeof(unsigned long))]; + void unbind_all_ports(void) { int i; - for(i=0;i